/*
 * StudentHomeworkSwapArrays.java
 *
 * Copyright 2007 Christoph Csallner and Yannis Smaragdakis.
 */
package edu.gatech.cc.cnc.examples;

/**
 * @author csallner@gatech.edu (Christoph Csallner)
 */
public class StudentHomeworkSwapArrays {

  /**
   * Students were told to swap array elements, but just return
   * if arrays are of different length.
   * Implementation ignores this length constraint..
   */
  public static void swapArrays(double[] fstArray, double[] sndArray) {
    //..
    for(int m=0; m<fstArray.length; m++) {
      //..
      fstArray[m]=sndArray[m]; 
      /*..*/
    }
  }

}
